import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/whatsappTask/getList',
    method: 'post',
    data
  })
}

export function notice(data) {
  return request({
    url: '/whatsappTask/notice',
    method: 'post',
    data
  })
}

export function changeTaskWeight(data) {
  return request({
    url: '/whatsappTask/changeTaskWeight',
    method: 'post',
    data
  })
}

export function killTask(data) {
  return request({
    url: '/whatsappTask/killTask',
    method: 'post',
    data
  })
}

export function getSendLog(data) {
  return request({
    url: '/whatsappTask/getSendLog',
    method: 'post',
    data
  })
}

export function setTaskDetail(data) {
  return request({
    url: '/whatsappTask/setTaskDetail',
    method: 'post',
    data
  })
}

export function resetUndelivered(data) {
  return request({
    url: '/whatsappTask/resetUndelivered',
    method: 'post',
    data
  })
}

export function changeLabel(data) {
  return request({
    url: '/whatsappTask/changeLabel',
    method: 'post',
    data
  })
}

export function getTaskSendContent(data) {
  return request({
    url: '/whatsappTask/getTaskSendContent',
    method: 'post',
    data
  })
}

